import request from '@/utils/request'

// 查询库存清单列表
export function listInventoryList(query) {
  return request({
    url: '/system/inventoryList/list',
    method: 'get',
    params: query
  })
}

// 查询库存清单详细
export function getInventoryList(id) {
  return request({
    url: '/system/inventoryList/' + id,
    method: 'get'
  })
}

// 新增库存清单
export function addInventoryList(data) {
  return request({
    url: '/system/inventoryList',
    method: 'post',
    data: data
  })
}

// 修改库存清单
export function updateInventoryList(data) {
  return request({
    url: '/system/inventoryList',
    method: 'put',
    data: data
  })
}

// 删除库存清单
export function delInventoryList(id) {
  return request({
    url: '/system/inventoryList/' + id,
    method: 'delete'
  })
}
